-- GENERATED SPELL FOR [Drakkari Medicine Man] --


function spell0_29826(pUnit, Event) --@Cleanse Magic,n/a--
pUnit:FullCastSpellOnTarget(55598,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29826', 550, 1)
end

function spell1_29826(pUnit, Event) --@Earth Shield,n/a--
pUnit:FullCastSpellOnTarget(55599,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29826', 557, 1)
end

function spell2_29826(pUnit, Event) --@Earth Shield,n/a--
pUnit:FullCastSpellOnTarget(58981,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29826', 629, 1)
end

function spell3_29826(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(55597,pUnit)
pUnit:RegisterEvent('Sorts_29826', 2000, 1)
end

function spell4_29826(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(58980,pUnit)
pUnit:RegisterEvent('Sorts_29826', 2000, 1)
end

function spell5_29826(pUnit, Event) --@Mana Link,n/a--
pUnit:FullCastSpellOnTarget(55582,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29826', 20329, 1)
end

function Sorts_29826(pUnit, Event)
local choix_sorts_29826 = math.random(0, 5)
if choix_sorts_29826 == 0 then
pUnit:RegisterEvent('spell0_29826', 1, 1)
end
if choix_sorts_29826 == 1 then
pUnit:RegisterEvent('spell1_29826', 1, 1)
end
if choix_sorts_29826 == 2 then
pUnit:RegisterEvent('spell2_29826', 1, 1)
end
if choix_sorts_29826 == 3 then
pUnit:RegisterEvent('spell3_29826', 1, 1)
end
if choix_sorts_29826 == 4 then
pUnit:RegisterEvent('spell4_29826', 1, 1)
end
if choix_sorts_29826 == 5 then
pUnit:RegisterEvent('spell5_29826', 1, 1)
end
end

function mob29826_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29826', math.random(1500, 3000), 1)
end

function mob29826_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29826_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29826_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29826, 1, 'mob29826_Action')
RegisterUnitEvent(29826, 2, 'mob29826_Leave')
RegisterUnitEvent(29826, 3, 'mob29826_Kill')
RegisterUnitEvent(29826, 4, 'mob29826_Die')
